package com.zzr.zzrbackend.mapper;

import com.zzr.zzrbackend.pojo.domain.LiveGroupChatRoom;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LiveGroupChatRoomMapper {
    Integer init(Integer disabuseId, Integer childId, Integer parentId, Long time);

    LiveGroupChatRoom selectByDisabuseId(Integer disabuseId);

    List<LiveGroupChatRoom> selectAllByUserId(Integer userId);

    Integer selectIdByDisabuseId(Integer disabuseId);

    String selectNameByDisabuseId(Integer disabuseId);

    Integer setNameByDisabuseId(Integer disabuseId, String name);

    LiveGroupChatRoom selectById(Integer roomId);

    Integer selectChildIdByRoomId(Integer roomId);

    Integer selectParentIdByRoomId(Integer roomId);

    Integer selectVolunteerIdByRoomId(Integer roomId);

    Integer setVolunteerId(Integer disabuseId, Integer volunteerId);

    Integer getJurisdictionByUserIdAndRoomId(Integer userId, Integer roomId);

    Integer setGroupName(Integer roomId, String groupName);

}
